var q6 ="#fUI/RunnerGame.img/RunnerGameUI/UI/Point/1#"
var q1 ="#fUI/SoulUI.img/DungeonMap/icon/dungeonItem/0#"
var zh5 ="#fUI/Gateway.img/WorldSelect/BtDot/normal/0#"  

var status = 0;

function start() {
	status = -1;
	action(1, 0, 0);
}

function action(mode, type, selection) {
	if (mode == -1) {
		cm.dispose();
	} else {
		if (mode == 0 && status == 0) {
			cm.dispose();
			return;
		}
		if (mode == 1)
			status++;
		else
			status--;
		if (status == 0) {
        	var text="#e#r "+"      " +q6+"   请认真选择以下套装   "+q6+" #n\r\n";
			text+="#b#L7#"+zh5+"#e狮心战斗套装#d[防具-4件套]#l\r\n";
			text+="#b#L8#"+zh5+"#e龙尾法师套装#d[防具-4件套]#l\r\n";
			text+="#b#L9#"+zh5+"#e渡鸦之魂套装#d[防具-4件套]#l\r\n";
			text+="#b#L10#"+zh5+"#e鲨齿船长套装#d[防具-4件套]#l\r\n";
			text+="#b#L11#"+zh5+"#e鹰翼哨兵套装#d[防具-4件套]#l\r\n";
			text+="#b#L12#"+zh5+"#e女皇套装主武器制作#l\r\n";
			cm.sendSimple(text);
		} else if (status == 1){
			switch (selection) {
				case 7:
				cm.dispose();
				cm.openNpc(0, "狮心战斗套装");
				break;
				case 8:
				cm.dispose();
				cm.openNpc(0, "龙尾法师套装");
				break;
				case 9:
				cm.dispose();
				cm.openNpc(0, "渡鸦之魂套装");
				break;	
				case 10:
				cm.dispose();
				cm.openNpc(0, "鲨齿船长套装");
				break;
				case 11:
				cm.dispose();
				cm.openNpc(0, "鹰翼哨兵套装");
				break;
				case 12:
				cm.dispose();
				cm.openNpc(0, "女皇套装主武器");
				break;
				default:
				cm.sendOk("管理员正在准备中.请期待");
				cm.dispose();
			}
		}
	}
}